package com.hdax.dm.common.exception.user;

import com.hdax.dm.common.exception.DmException;

public class UserLoginException extends DmException {

    public UserLoginException(String errorMsg,String errorCode){
        super(errorMsg, errorCode);
    }

    public static class ERR_INFO{
        //用户名不存在
        public final static String NO_USER_MSG = "此用户不存在";
        public final static String NO_USER_CODE = "1001";
        //密码错误
        public final static String ERR_PWD_MSG = "密码错误";
        public final static String ERR_PWD_CODE = "1002";
        //手机号为空
        public final static String NULL_PHONE_MSG = "手机号不能为空";
        public final static String NULL_PHONE_CODE = "1003";
        //手机号格式错误
        public final static String ERROR_PHONE_MSG = "手机号格式错误";
        public final static String ERROR_PHONE_CODE = "1004";
        //验证码未填写
        public final static String NULL_VCODE_MSG = "验证码未填写";
        public final static String NULL_VCODE_CODE = "1005";
        //验证码错误
        public final static String ERR_VCODE_MSG = "验证码错误";
        public final static String ERR_VCODE_CODE = "1006";
        //60秒之内只能获取一次验证码
        public final static String FAIL_VCODE_MSG = "60秒之内只能获取一次验证码";
        public final static String FAIL_VCODE_CODE = "1007";
        //用户未登录
        public final static String NO_LOGIN_MSG = "当前用户未登录";
        public final static String NO_LOGIN_CODE = "1008";
        //手机号已存在
        public final static String YES_PHONE_MSG = "手机号已存在,请登录！";
        public final static String YES_PHONE_CODE = "1009";
        //验证码已过期
        public final static String NO_VCODE_MSG = "验证码已过期,请重新发送！";
        public final static String NO_VCODE_CODE = "1010";

    }

}
